#include<stdio.h>
main()
{
char p[100],u[100];
FILE *fp;
/*char ch;
fp = fopen ( "dsa.txt", "r" ) ;
while (1)
{
ch = fgetc(fp) ;
if (ch == EOF)
break ;
printf ( "%c", ch ) ;
}
fclose(fp) ;*/

fp=fopen("dsa.txt", "r");
if(fp== NULL)
{
puts("cannot open file") ;
exit(0);
}
printf("enter user id=");
gets(u,100);
printf("enter password=");
gets(p,100);

}
